[INFO] cloning repository https://github.com/benracine/basic-battleship-program
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/benracine/basic-battleship-program" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbenracine%2Fbasic-battleship-program", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbenracine%2Fbasic-battleship-program'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] dd15a6b7b45803451f88b76d1341aada42abdbf6
[INFO] fixing benracine/basic-battleship-program against try#622891a4e29178280638a6b63a8908bde2c0c854+cargoflags=-Zfix-edition=start=2015 for pr-157817-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbenracine%2Fbasic-battleship-program" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/benracine/basic-battleship-program
[INFO] finished tweaking git repo https://github.com/benracine/basic-battleship-program
[INFO] tweaked toml for git repo https://github.com/benracine/basic-battleship-program written to /workspace/builds/worker-0-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/benracine/basic-battleship-program on toolchain 622891a4e29178280638a6b63a8908bde2c0c854
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/benracine/basic-battleship-program already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3a6becf2bc8dde7f3fa57ede90e4f284e72d296796fc446bbb1e2c7cc0530151" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] edf0df0eaee63375773a670da6738348d4cc86cf01b8e1a63b0680920a84ce47
[INFO] running `Command { std: "docker" "start" "edf0df0eaee63375773a670da6738348d4cc86cf01b8e1a63b0680920a84ce47", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "edf0df0eaee63375773a670da6738348d4cc86cf01b8e1a63b0680920a84ce47" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "edf0df0eaee63375773a670da6738348d4cc86cf01b8e1a63b0680920a84ce47", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=" "-e" "RUSTDOCFLAGS=" "-w" "/opt/rustwide/workdir" "--user" "0:0" "edf0df0eaee63375773a670da6738348d4cc86cf01b8e1a63b0680920a84ce47" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fix" "--allow-no-vcs" "--allow-dirty" "--frozen" "--all" "--all-targets" "--message-format=json" "-Zfix-edition=start=2015", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.174
[INFO] [stderr]    Compiling syn v2.0.104
[INFO] [stderr]     Checking getrandom v0.3.3
[INFO] [stderr]     Checking rand_core v0.9.3
[INFO] [stderr]     Checking uuid v1.17.0
[INFO] [stderr]     Checking rand_chacha v0.9.0
[INFO] [stderr]     Checking rand v0.9.2
[INFO] [stderr]    Compiling strum_macros v0.27.2
[INFO] [stderr]     Checking battleship v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `std::thread`
[INFO] [stdout]  --> src/app/game.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::thread;
[INFO] [stdout]   |     ^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::time::Duration`
[INFO] [stdout]  --> src/app/game.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::time::Duration;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]   --> src/app/grid.rs:38:16
[INFO] [stdout]    |
[INFO] [stdout] 38 |             if (fits) {
[INFO] [stdout]    |                ^    ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 38 -             if (fits) {
[INFO] [stdout] 38 +             if fits  {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/app/grid.rs:37:75
[INFO] [stdout]    |
[INFO] [stdout] 37 |             let fits = self.check_fit(ship, start_row, start_col, length, &ship.direction);
[INFO] [stdout]    |                             ---------                                     ^^^^^^^^^^^^^^^ expected `Direction`, found `&Direction`
[INFO] [stdout]    |                             |
[INFO] [stdout]    |                             arguments to this method are incorrect
[INFO] [stdout]    |
[INFO] [stdout] note: method defined here
[INFO] [stdout]   --> src/app/grid.rs:45:12
[INFO] [stdout]    |
[INFO] [stdout] 45 |     pub fn check_fit(
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 51 |         direction: Direction,
[INFO] [stdout]    |         --------------------
[INFO] [stdout] help: consider removing the borrow
[INFO] [stdout]    |
[INFO] [stdout] 37 -             let fits = self.check_fit(ship, start_row, start_col, length, &ship.direction);
[INFO] [stdout] 37 +             let fits = self.check_fit(ship, start_row, start_col, length, ship.direction);
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0369]: binary operation `!=` cannot be applied to type `CellStatus`
[INFO] [stdout]   --> src/app/grid.rs:66:66
[INFO] [stdout]    |
[INFO] [stdout] 66 |                 || self.cells[row as usize][col as usize].status != CellStatus::Empty
[INFO] [stdout]    |                    --------------------------------------------- ^^ ----------------- CellStatus
[INFO] [stdout]    |                    |
[INFO] [stdout]    |                    CellStatus
[INFO] [stdout]    |
[INFO] [stdout] note: an implementation of `PartialEq` might be missing for `CellStatus`
[INFO] [stdout]   --> src/app/cell.rs:26:1
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub enum CellStatus {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^ must implement `PartialEq`
[INFO] [stdout] help: consider annotating `CellStatus` with `#[derive(PartialEq)]`
[INFO] [stdout]   --> src/app/cell.rs:26:1
[INFO] [stdout]    |
[INFO] [stdout] 26 + #[derive(PartialEq)]
[INFO] [stdout] 27 | pub enum CellStatus {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::thread`
[INFO] [stdout]  --> src/app/game.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::thread;
[INFO] [stdout]   |     ^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::time::Duration`
[INFO] [stdout]  --> src/app/game.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::time::Duration;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]   --> src/app/grid.rs:38:16
[INFO] [stdout]    |
[INFO] [stdout] 38 |             if (fits) {
[INFO] [stdout]    |                ^    ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 38 -             if (fits) {
[INFO] [stdout] 38 +             if fits  {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/app/grid.rs:37:75
[INFO] [stdout]    |
[INFO] [stdout] 37 |             let fits = self.check_fit(ship, start_row, start_col, length, &ship.direction);
[INFO] [stdout]    |                             ---------                                     ^^^^^^^^^^^^^^^ expected `Direction`, found `&Direction`
[INFO] [stdout]    |                             |
[INFO] [stdout]    |                             arguments to this method are incorrect
[INFO] [stdout]    |
[INFO] [stdout] note: method defined here
[INFO] [stdout]   --> src/app/grid.rs:45:12
[INFO] [stdout]    |
[INFO] [stdout] 45 |     pub fn check_fit(
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 51 |         direction: Direction,
[INFO] [stdout]    |         --------------------
[INFO] [stdout] help: consider removing the borrow
[INFO] [stdout]    |
[INFO] [stdout] 37 -             let fits = self.check_fit(ship, start_row, start_col, length, &ship.direction);
[INFO] [stdout] 37 +             let fits = self.check_fit(ship, start_row, start_col, length, ship.direction);
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0369]: binary operation `!=` cannot be applied to type `CellStatus`
[INFO] [stdout]   --> src/app/grid.rs:66:66
[INFO] [stdout]    |
[INFO] [stdout] 66 |                 || self.cells[row as usize][col as usize].status != CellStatus::Empty
[INFO] [stdout]    |                    --------------------------------------------- ^^ ----------------- CellStatus
[INFO] [stdout]    |                    |
[INFO] [stdout]    |                    CellStatus
[INFO] [stdout]    |
[INFO] [stdout] note: an implementation of `PartialEq` might be missing for `CellStatus`
[INFO] [stdout]   --> src/app/cell.rs:26:1
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub enum CellStatus {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^ must implement `PartialEq`
[INFO] [stdout] help: consider annotating `CellStatus` with `#[derive(PartialEq)]`
[INFO] [stdout]   --> src/app/cell.rs:26:1
[INFO] [stdout]    |
[INFO] [stdout] 26 + #[derive(PartialEq)]
[INFO] [stdout] 27 | pub enum CellStatus {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0308, E0369.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0308, E0369.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `battleship` (bin "battleship") due to 2 previous errors; 3 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: could not compile `battleship` (bin "battleship" test) due to 2 previous errors; 3 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "edf0df0eaee63375773a670da6738348d4cc86cf01b8e1a63b0680920a84ce47", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "edf0df0eaee63375773a670da6738348d4cc86cf01b8e1a63b0680920a84ce47", kill_on_drop: false }`
[INFO] [stdout] edf0df0eaee63375773a670da6738348d4cc86cf01b8e1a63b0680920a84ce47
